import request from '@/utils/request'

// 获取今日课程列表
export function getTodayCourses(data) {
  return request({
    url: '/ysg/work/getTodayCourses',
    method: 'post',
    data: data
  })
}

// 获取课程学生列表
export function getCourseStudents(query) {
  return request({
    url: '/ysg/work/associatedStudentList',
    method: 'get',
    params: query
  })
}

// 学生签到
export function studentSignIn(data) {
  return request({
    url: '/ysg/work/signIn',
    method: 'post',
    data: data
  })
}

export function studentBatchSignIn(data) {
  return request({
    url: '/ysg/work/batchSignIn',
    method: 'post',
    data: data
  })
}

export function rate(data) {
  return request({
    url: '/ysg/work/rate',
    method: 'post',
    data: data
  })
}

// 获取签到记录
export function getSignInRecords(data) {
  return request({
    url: '/ysg/work/getSignInRecords',
    method: 'get',
    params: data
  })
}
